<template>
	<rich-text class="yb-rich-text" :nodes="nodeSync" :id="customIdSync" :class="customClassSync" :style="customStyleSync"></rich-text>
</template>

<script>
	import parseHtml from '../../js_sdk/html-parse.js';
	import ComponentMixin from '../../js_sdk/componentMixin.js'
	import Util from '../../js_sdk/util.js'
	export default {
		mixins: [ComponentMixin],
		props: {
			nodes: {
				type: [String, Array],
				default () {
					return new Array
				}
			}
		},
		computed: {
			nodeSync () {
				return Util.typeof(this.nodes) == 'String' ? parseHtml(this.nodes) : this.nodes
			}
		}
	}
</script>

<style>
</style>